Method and apparatus for processing information, electronic device and storage medium

ABSTRACT

The present disclosure provides a method for processing information, an apparatus for processing information, an electronic device, and a computer-readable storage medium. The method includes: in case that at least one of a touch sliding event passing a control and a touch sliding event starting from a control is detected, calculating a distance between a current position of a touch point of the touch sliding event and a position of the control in real time; and under the distance is greater than a first preset threshold, adjusting at least one of a direction and a distance of an emission operation for a corresponding skill of the control performed on a virtual character according to the current position of the touch point.

CROSS REFERENCE

This application is based upon and claims priority to Chinese PatentApplication No. 201710386455.5, filed on May 26, 2017, the entirecontents thereof are incorporated herein by reference.

TECHNICAL FIELD

The present disclosure relates to the field of human-computerinteraction, and in particular, to a method for processing information,an apparatus for processing information, an electronic device, and acomputer-readable storage medium.

BACKGROUND

With the rapid development of mobile communication technologies, a largenumber of game applications have appeared on touch terminals. When askill is emitted in the game, the user may use the finger to operate onthe touch screen to realize the diversification of skill emission,thereby presenting a real game scene.

SUMMARY

In one embodiment of the present disclosure, there is provided a methodfor processing information, wherein a graphical user interface isobtained by executing a software application on a processor of aterminal and rendering on a touch screen of the terminal, and thegraphic user interface at least includes a game scene, the methodincluding:

in case that at least one of a touch sliding event passing a control anda touch sliding event starting from a control is detected, calculating adistance between a current position of a touch point of the touchsliding event and a position of the control in real time; and

under the distance is greater than a first preset threshold, adjustingat least one of a direction and a distance of an emission operation fora corresponding skill of the control performed on a virtual characteraccording to the current position of the touch point.

In one embodiment of the present disclosure, there is provided anelectronic device, including:

a processor; and

a memory for storing executable instructions of the processor;

wherein the processor is configured to perform following steps viaexecuting the executable instructions:

in case that at least one of a touch sliding event passing a control anda touch sliding event starting from a control is detected, calculating adistance between a current position of a touch point of the touchsliding event and a position of the control in real time; and

under the distance is greater than a first preset threshold, adjustingat least one of a direction and a distance of an emission operation fora corresponding skill of the control performed on a virtual characteraccording to the current position of the touch point.

In one embodiment of the present disclosure, there is provided acomputer-readable storage medium having a computer program storedthereon, wherein the computer program is executed by a processor toimplement following steps:

in case that at least one of a touch sliding event passing a control anda touch sliding event starting from a control is detected, calculating adistance between a current position of a touch point of the touchsliding event and a position of the control in real time; and

under the distance is greater than a first preset threshold, adjustingat least one of a direction and a distance of an emission operation fora corresponding skill of the control performed on a virtual characteraccording to the current position of the touch point.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is an operation interface of a mobile phone game A in the relatedart.

FIG. 2 is an operation interface of a mobile phone game B in the relatedart.

FIG. 3 is a flow chart of a method for processing information accordingto one of exemplary embodiments of the present disclosure.

FIG. 4 is a schematic diagram of displaying an auxiliary objectaccording to one of the exemplary embodiments of the present disclosure.

FIG. 5 is a schematic diagram of a skill emission distance according toone of the exemplary embodiments of the present disclosure.

FIG. 6 is a schematic diagram of adjustment of a skill emissiondirection including a predetermined attack range according to one of theexemplary embodiments of the present disclosure.

FIG. 7 is a structural diagram of an apparatus for processinginformation according to one of the exemplary embodiments of the presentdisclosure.

FIG. 8 is a block diagram of an electronic device according to one ofthe exemplary embodiments of the present disclosure.

FIG. 9 illustrates a program product for processing informationaccording to one of the exemplary embodiments of the present disclosure.

DETAILED DESCRIPTION

Exemplary embodiments will now be described more fully with reference tothe accompanying drawings.

At present, in the mobile games such as a MOBA (Multiplayer OnlineBattle Arena), the following two manners are generally used to achievethe skill emission. In a first manner, a skill emission direction and anattack character are automatically determined by tapping a skillcontrol, referring to a mobile game A shown in FIG. 1. In a secondmanner, in a mobile game B shown in FIG. 2, the skill is emitted bytapping a skill control and then tapping on an effective range of thegame scene, and the distance and the target are determined and an attackis performed according to a position of the finger tapping on thescreen.

In the above first manner, there are the following problems: first, thegame skill may only be emitted in a single direction and a singledistance; second, the user cannot independently select and control thedirection and distance of the skill emission, and the user experiencemay be not good in a multiplayer competitive game. In the above secondmanner, there are the following problems: first, in case that the screenis relatively small, the finger may easily obstruct the screen when theuser taps on the scene to select the target, resulting in an inaccurateselection or an incorrect operation, second, the operation of tappingthe skill control and then tapping the emission position is tedious, anda displacement distance of the finger is relatively large when the skillemission is performed, resulting in a low efficiency of the skillemission; third, such method is not conducive to two-handed handhelddevices for games, and the user experience may be not good.

The exemplary embodiments of the present disclosure provide a method forprocessing information. The method for processing information may beapplied in a game application and may be presented by executing asoftware application on a processor of the terminal and rendering theresulting graphical user interface on a touch screen of the terminal.The graphical user interface may be an overall displayable area of theterminal, i.e., a full-screen touch screen; or may be a partiallydisplayable area of the terminal, i.e., a window touch screen. Theterminal may be an electronic device such as a desktop computer, or maybe a portable electronic device such as a tablet computer, a notebookcomputer, a game machine, or a smart phone. The game system may beimplemented on a terminal by installing a game application or othersoftware application. The terminal includes at least a memory forstoring data and a processor for data processing. In this exemplaryembodiment, a mobile game of a touch terminal is used as an example fordescription. With reference to FIG. 3, the method for processinginformation may include the following steps.

In step S110, when a touch sliding event that passes through a controlor starts from a control is detected, a distance between a currentposition of a touch point of the touch sliding event and a position ofthe control is calculated in real time.

In step S120, if the distance is greater than a first preset threshold,at least one of a direction and a distance of an emission operation fora corresponding skill of the control performed on a virtual character isadjusted according to the current position of the touch point.

According to the method for processing information in this exemplaryembodiment, on the one hand, at least one of the direction and thedistance of the skill emission is adjusted according to a change of thecurrent position of the touch point of the touch sliding event, and theskill emission operation can be accurately performed, thereby avoidingan occurrence of a large amount of misoperations, and increasing theaccuracy of emission of the skill; on the other hand, the direction ofthe skill emission operation performed on the virtual character isadjusted according to an orientation of the current position of thetouch point, which improves a degree of customization of the skillemission and diversity; on the other hand, reducing a range of fingeroperation when performing the skill emission operation simplifies theoperation steps and improves the operation efficiency.

In the following, the method for processing information in thisexemplary embodiment will be further described with reference to FIG. 3.

In the step S110, when a touch sliding event that passes through acontrol or uses a control as a starting point is detected, a distancebetween the current position of the touch point of the touch slidingevent and the position of the control is calculated in real time.

In this exemplary embodiment, before determining whether a touch slidingevent is received, it may first detect whether a touch start operationor a trigger operation is received. The touch start operation may be anoperation in which the finger touches the touch interface, that is, thetouch interface may be touched by the finger, or the touch interface maybe touched by different gestures such as tapping, double-tapping,panning, pressing, dragging, and the like. When it is detected that afinger touches the touch screen to start a touch operation, the systemmay acquire a position where the touch start operation occurs accordingto the touch start operation of the finger touching the touch interface.The control may be a skill control, and an area including the skillcontrol may be a skill area. After the touch start operation isreceived, it may be determined whether the touch start operation iswithin the skill area by comparing a coordinate of the position of thetouch start operation with a coordinate of a range boundary of the skillarea. The skill area may include a plurality of different skillcontrols, the skill area may be set at a bottom right corner or at anyposition of the graphical user interface, and the skill area may be anarea having an arbitrary shape, which are not specifically limited bythe present exemplary embodiment. After it is determined that theposition where the touch start operation occurs is within the skillarea, it may be detected whether there is a touch sliding eventcontinuous with the touch start operation on the touch interface. Theposition of the touch start operation may be on the skill control, ormay be at any position in the skill area, or may be at any position inany area.

The touch sliding event may be continuous with the touch startoperation, or they may be separated by a preset interval. The touchsliding event acting on the control may use any skill control within theskill area as a start point, or may use any position on the graphicaluser interface as the start point, and a track of the touch slidingevent needs to pass through any skill control within the skill area. Thetouch sliding event may be an operation that a finger slides anarbitrary distance in an arbitrary direction on the touch interface,which is not particularly limited in this exemplary embodiment. Forexample, the touch sliding event may be within the skill area, or mayslide from the skill area to any position on the touch interface.

After the touch sliding event acting on the control is detected, theposition of the corresponding control and the current position of thetouch point of the touch sliding event may be acquired through acoordinate system or other manners, and a distance between the currentposition of the touch point of the touch sliding event and the positionof the control is calculated in real time according to a distancecalculation formula, where the distance may be calculated by a functionor other means.

In addition, in the example embodiment, the touch sliding event is anevent in response to a touch sliding on the control, or an event inresponse to a tap touch sliding on the control, or an event in responseto a re-press touch sliding on the control.

In this exemplary embodiment, the touch sliding event acting on theskill control may be an ordinary slide operation, or may be a tap touchsliding event composed of a tap operation and a slide operation, or maybe a re-press touch sliding event composed of a press operation and aslide operation. In addition, the touch sliding event may be a lightlypressed touch sliding event or other types of touch sliding event, whichis not particularly limited in this exemplary embodiment. In thisexemplary embodiment, the ordinary touch sliding event is taken as anexample for description.

In the step S120, when the distance is greater than the first presetthreshold, at least one of the direction and the distance of theemission operation for the corresponding skill of the control performedon the virtual character is adjusted according to the current positionof the touch point.

In this exemplary embodiment, it may be first determined whether thedistance between the current position of the touch point of the touchsliding event and the position of the control is greater than a firstpreset threshold. The first preset threshold may be used as a minimumdistance for skill emission, and may be greater than a radius of theskill control, that is, the touch sliding event may occur in a skillarea outside the skill control. When the distance between the currentposition of the touch point and the position of the control is greaterthan the first preset threshold, the direction of the skill emission maybe adjusted according to the orientation of the current position of thetouch point. Specifically, when the current position of the touch pointchanges, the orientation of the touch point may be re-determinedaccording to the current position of the touch point, and a specifictarget or a range of skill emission may be determined by the currentposition of the touch point, in turn, the direction of skill emissionmay be determined based on an angle between the orientation of thecurrent position of the touch point and a coordinate axis. For example,referring to (a) in FIG. 5, the current position of the touch point isin a direction of 10 o'clock, and referring to (b) in FIG. 5, thecurrent position of the touch point is in a direction of 9 o'clock.Then, in the game scenario, the direction of the skill emission isadjusted from 10 o'clock to 9 o'clock correspondingly.

In addition, when the distance between the current position of the touchpoint and the position of the control is greater than the first presetthreshold, the distance of the skill emission may also be adjustedaccording to the distance between the current position of the touchpoint and the position of the skill control. For example, the skillcontrol in a game may include a direction controlling, a distancecontrolling, direction and distance controlling, and other types.Referring to FIG. 6, for a skill that includes a preset skill emissionrange, an attack distance thereof cannot be adjusted, so the directionof performing the skill emission operation may only be adjustedaccording to the orientation of the touch point. The area where thepreset skill is emitted may be an area range with an axisymmetricproperty, where a center of the touch point is used as an end point, anda connection line between the touch point and the skill emissionposition is used as an axis of symmetry, and the skill emission area mayhave a sector shape, a fan shape, a rectangle shape, an arrow shape, acircle shape or any other shape, which is not particularly limited inthis exemplary embodiment. For the skills with dual properties ofdirectionality and distance, both the attack distance and the attackdirection may be adjusted. In the actual application scenario, thedirection of the skill emission may be adjusted according to theorientation of the touch point, and the distance of the skill emissionmay be adjusted according to the distance between the current positionof the touch point and the position of the skill control.

In addition, in this exemplary embodiment, the above method forprocessing information may further include:

detecting whether there is a touch end event continuous with the touchsliding event;

if the touch end event is detected, determine whether the distancebetween the current position of the touch point of the touch slidingevent and the position of the control is greater than a second presetthreshold; and

if the distance between the current position of the touch point of thetouch sliding event and the position of the control is less than orequal to the second preset threshold, the emission operation for thecorresponding skill of the control is performed on the virtualcharacter.

In this exemplary embodiment, after the touch sliding event, whetherthere is a touch end event continuous with the touch sliding event maybe detected. The touch end event may be an operation of the fingerleaving the touch interface, or an operation that the finger continuesto stay at the end of the touch sliding event for more than a presettime, and may also be other operations, which is not limited in thisexemplary embodiment. For example, after the user determines the targetor range of skill emission through the touch sliding event, the user maylift the finger to move the finger away from the touch interface, or maykeep the finger at the end of the track of the touch sliding event for atime equal to or exceeding the preset time, so as to end the currenttouch sliding event.

In this exemplary embodiment, when the touch end event that the fingerleaves the touch interface is detected, whether the distance between thetouch point and the skill control is greater than a second presetthreshold is determined, so as to determine whether to perform the skillemission operation. In this exemplary embodiment, the second presetthreshold is greater than the first preset threshold, and the secondpreset threshold may be a critical point of a maximum distance at whichthe skill is emitted. When the distance between the touch point and theskill control is within a range between the first preset threshold andthe second preset threshold, the current position of the touch point ofthe touch sliding event may be determined as the position of emittingthe skill, and then the skill emission operation corresponding to theskill control may be performed at this position. In a mobile game, acertain skill may be continuously emitted multiple times, or after eachskill is emitted, a next skill may be emitted after a short preset time.

Referring to (a) in FIG. 5, the touch point is located at a minimumstarting distance of the skill emission. Since the distance between thetouch point and the skill control is within the skill emission range,the skill emission operation may be performed; and referring to (b) inFIG. 5, the touch point is located at a maximum emission distance of theskill emission, and the distance between the touch point and the skillcontrol is equal to the second preset threshold, then the skill emissionoperation may be performed on the virtual character.

In addition, in this exemplary embodiment, the above method forprocessing information may further include:

if it is determined that the distance between the current position ofthe touch point of the touch sliding event and the position of thecontrol is greater than the second preset threshold, cancelingperforming the emission operation for the corresponding skill of thecontrol on the virtual character.

In this exemplary embodiment, when the distance between the touch pointand the skill control exceeds the second preset threshold of the maximumdistance of the skill emission, the skill emission operation may becancelled. As shown in (c) in FIG. 5, the current position of the touchpoint exceeds the skill emission range, and therefore, the cancellationof the skill emission operation may be triggered. Here, the cancellationof the emission operation may provide the user with an “estopperoperation” so as to avoid causing misoperation, and achieve an effectiveemission of the skill.

In addition, in this exemplary embodiment, the above method forprocessing information may further include:

detecting whether there is a touch end event continuous with the touchsliding event; and

if the touch end event is detected, performing an emission operation forthe corresponding skill of the control on the virtual character.

In this exemplary embodiment, when a touch end event that is continuouswith the touch sliding event is detected, the skill emission operationmay be directly performed on the virtual character without consideringthe distance between the end point of the touch sliding event and theskill control. Using this method will not miss an opportunity to emitskills, and can improve the efficiency of skill emission.

In addition, in the exemplary embodiment, the first preset threshold ispositively correlated to a minimum emission distance of the skillemission operation, and the second preset threshold is positivelycorrelated to a maximum emission distance of the skill emissionoperation.

In this exemplary embodiment, the first preset threshold may bepositively related to the minimum distance of skill emission. That is,the smaller the first preset threshold is, the shorter the minimumdistance of skill emission is, and the shorter the required track of thetouch sliding event when the skill emission operation is performedwithin the preset skill emission range is. The second preset thresholdmay be positively related to the maximum distance of the skill emission.The larger the second preset threshold is, the greater the maximumdistance of skill emission is, and the more efficient of emitting theskill within the preset range is.

In addition, in this exemplary embodiment, the above method forprocessing information may further include:

if the touch sliding event is detected, determining whether the distancebetween the current position of the touch point of the touch slidingevent and the position of the control is greater than a third presetthreshold; wherein the third preset is less than or equal to the firstpreset threshold; and

if it is determined that the distance between the current position ofthe touch point of the touch sliding event and the position of thecontrol is greater than the third preset threshold, displaying anauxiliary object on the graphic user interface.

In this exemplary embodiment, when a touch sliding event is detected inthe skill area, it may be determined whether to display the auxiliaryobject by determining whether the distance between the end point of thetouch control and the skill control is greater than the third presetthreshold. The third preset threshold may be equal to or less than thefirst preset threshold, that is, the third preset threshold may be lessthan or equal to a radius of any skill control. The auxiliary object maybe displayed when a touch sliding event with a short skill area isdetected, and then a length of the auxiliary object is calculated basedon the distance between the current position of the touch point and theposition of the control. By displaying the auxiliary object, the usercan more intuitively and clearly identify and adjust the direction anddistance of the skill emission.

In addition, in this exemplary embodiment, the auxiliary object is anauxiliary line; wherein the auxiliary line uses the control as astarting point and the current position of the touch point as an endpoint.

In this exemplary embodiment, the auxiliary object may be an auxiliaryline. The starting point of the auxiliary line may be a center point ofthe skill control, or may be a center point of the finger touching thetouch interface. The end point of the auxiliary line may be the currentposition of the touch point. The auxiliary line may be a solid line, adotted line, or other forms of line. Referring to FIG. 4, when thedistance between the current position of the touch point and the skillcontrol is greater than the third preset threshold, an auxiliary line inthe form of a dashed line may be displayed; and when the distancebetween the current position of the touch point and the skill control isgreater than the first preset threshold, the auxiliary line may bechanged following the change of the current position of the touch point.

In addition, in this exemplary embodiment, adjusting the direction ofthe emission operation for the corresponding skill of the controlperformed on the virtual character according to the current position ofthe touch point includes:

when the current position of the touch point changes, adjusting thedirection of the emission operation for the corresponding skill of thecontrol according to a mapping relationship between an angle of theauxiliary line and the direction of the skill emission operation.

In this exemplary embodiment, the angle of the auxiliary line may bedetermined according to the orientation where the current position ofthe touch point is located, and then the direction of the skill emissionmay be determined according to the angle of the auxiliary line. When thecurrent position of the touch point changes, the direction of the skillemission operation may be adjusted according to a one-to-onecorrespondence between the angle of the auxiliary line and the directionof the skill emission operation.

In addition, in this exemplary embodiment, adjusting the distance of theemission operation for the corresponding skill of the control performedon the virtual character according to the current position of the touchpoint includes:

when the current position of the touch point changes, adjusting thedistance of the emission operation for the corresponding skill of thecontrol according to a mapping relationship between a length of theauxiliary line and the distance of the skill emission operation.

In this exemplary embodiment, the length of the auxiliary line may bedetermined according to the current position of the touch point, andthen the distance of the skill emission may be determined according tothe length of the auxiliary line. When the current position of the touchpoint changes, the distance of the skill emission operation may beadjusted according to a one-to-one correspondence between the length ofthe auxiliary line and the distance of the skill emission operation.

In addition, in this exemplary embodiment, when it is determined thatthe distance between the current position of the touch point of thetouch sliding event and the position of the control is greater than thesecond preset threshold, the auxiliary line is distinctively displayedto prompt to cancel the emission operation for the corresponding skillof the control performed on the virtual character.

In this exemplary embodiment, when the distance between the currentposition of the touch point and the skill control is greater than thesecond preset threshold, the auxiliary line may be distinctivelydisplayed to prompt to cancel the skill emission operation. For example,the auxiliary line may be displayed in a bold outline, or the auxiliaryline may be displayed in a highlighted form, or the auxiliary line maybe displayed in a blinking manner or in any other form, which is notparticularly limited in the exemplary embodiment. A loop algorithm orother algorithm may be used to determine whether the distance betweenthe current position of the touch point and the skill control is greaterthan the second preset threshold, so as to determine whether it isnecessary to display the auxiliary line distinctively and cancel theskill emission operation.

Referring to (c) in FIG. 5, when the distance between the currentposition of the touch point and the skill control is greater than thesecond preset threshold, the auxiliary line may be displayed in a boldoutline, and a maximum range of the skill emission may also be displayedin a bold outline to prompt the cancellation of the skill emissionoperation on the virtual character. Through the distinctive display ofthe auxiliary line, the user can more accurately perform thecancellation of the skill emission operation, avoid a large number ofmisoperations, and provide the user with an “estopper operation” for theskill emission.

In an exemplary embodiment of the present disclosure, an apparatus forprocessing information is further provided. Referring to FIG. 7, theapparatus for processing information 200 may include: a positiondetermining module 201 and an emission execution module 202.

The position determining module 201 may be configured to, when a touchsliding event passing a control or starting from a control is detected,calculate a distance between a current position of a touch point of thetouch sliding event and a position of the control in real time.

The emission execution module 202 may be configured to, if the distanceis greater than a first preset threshold, adjust at least one of adirection and a distance of an emission operation for a correspondingskill of the control performed on a virtual character according to thecurrent position of the touch point.

The specific details of each module in the above apparatus forprocessing information have been described in detail in thecorresponding method for processing information, and therefore will notbe repeated here.

In an exemplary embodiment of the present disclosure, an electronicdevice capable of implementing the above method is also provided.

Those skilled in the art may understand that various aspects of thepresent disclosure may be implemented as a system, a method, or aprogram product. Therefore, various aspects of the present disclosuremay be embodied in the form of a complete hardware implementation, acomplete software implementation (including a firmware, a microcode,etc.), or an implementation combining hardware and software, which maybe collectively referred to “circuit”, “module” or “system” here.

The electronic device 600 according to this embodiment of the presentdisclosure is described below with reference to FIG. 8. The electronicdevice 600 shown in FIG. 8 is merely an example, and should not imposeany limitation on the function and scope of use of the embodiments ofthe present disclosure.

As shown in FIG. 8, the electronic device 60X) is represented in theform of a general-purpose computing device. Components of the electronicdevice 600 may include, but is not limited to, at least one processingunit 610 described above, at least one storage unit 620 described above,a bus 630 connecting different system components (including the storageunit 620 and the processing unit 610), and a display unit 640.

The storage unit stores a program code, and the program code may beexecuted by the processing unit 610 so that the processing unit 610executes the steps in various exemplary embodiments according to thepresent disclosure described in the above-mentioned “exemplary method”section of this specification.

The memory unit 620 may include a readable medium in the form of avolatile memory unit, such as at least one of a random access memoryunit (RAM) 6201 and a cache memory unit 6202, and may further include aread only memory unit (ROM) 6203.

The storage unit 620 may also include a program/utility 6204 having aset (at least one) of program modules 6205, such program modules 6205including but not limited to: an operating system, one or moreapplication programs, other program modules, and program data. Each orsome combination of these examples may include the implementation of anetwork environment.

The bus 630 may represent one or more of several types of busstructures, including a memory cell bus or a memory cell controller, aperipheral bus, an accelerated graphics port, a processing unit, or alocal bus using any of a variety of bus structures.

The electronic device 600 may also communicate with one or more externaldevices 700 (e.g., a keyboard, a pointing device, a Bluetooth device,etc.), and may also communicate with one or more devices that enable theuser to interact with the electronic device 600, or may communicate withany device (e.g., a router, a modem, etc.) that enables the electronicdevice 600 to communicate with one or more other computing devices. Thiscommunication may be performed via an input/output (I/O) interface 650.Also, the electronic device 600 may also communicate with one or morenetworks (e.g., at least one of a local area network (LAN), a wide areanetwork (WAN), and a public network, such as the Internet) through anetwork adapter 660. As shown in the drawings, the network adapter 660communicates with other modules of the electronic device 600 via the bus630. It should be understood that although not shown in the drawings, atleast one of other hardware and software modules may be used inconjunction with the electronic device 600, including but not limitedto: a microcode, a device driver, a redundant processing unit, anexternal disk drive array, a RAID systems, a tape drive, and a databackup storage system.

Through the foregoing description of the embodiments, those skilled inthe art can easily understand that the exemplary embodiments describedherein may be implemented by software, and may also be implemented bysoftware in combination with necessary hardware. Therefore, thetechnical solution according to the embodiments of the presentdisclosure may be embodied in the form of a software product that may bestored in a non-volatile storage medium (which may be a CD-ROM, a Udisk, a mobile hard disk, etc.) or on a network, including severalinstructions to make a computing device (which may be a personalcomputer, a server, a terminal device, or a network device, etc.)perform the method according to the embodiments of the presentdisclosure.

In an exemplary embodiment of the present disclosure, there is alsoprovided a computer readable storage medium on which a program productcapable of implementing the method described above in this specificationis stored. In some possible implementations, various aspects of thepresent disclosure may also be implemented in the form of a programproduct including a program code. The program code, when being executedon the terminal device, makes the terminal device perform the stepsaccording to various exemplary embodiments of the present disclosuredescribed in the above-described “exemplary method” section of thisspecification.

Referring to FIG. 9, a program product 800 for implementing the abovemethod according to the embodiment of the present disclosure isdescribed. The program product 800 may use a portable compact discread-only memory (CD-ROM) and include program codes, and may be run in aterminal device, such as a personal computer. However, the programproduct of the present disclosure is not limited thereto, and in thisdisclosure, the readable storage medium may be any tangible medium thatcontains or stores a program that may be used by or in conjunction withan instruction execution system, apparatus, or device.

The program product may employ any combination of one or more readablemedia. The readable medium may be a readable signal medium or a readablestorage medium. The readable storage medium may be, for example but notlimited to, a system, an apparatus, or a device of electronic, magnetic,optical, electromagnetic, infrared, or semiconductor, or any combinationof the above. More specific examples (non-exhaustive listing) of thereadable storage media include: electrical connections with one or morewires, portable disks, hard disks, random access memory (RAM), read onlymemory (ROM), erasable programmable read-only memory (EPROM or flashmemory), an optical fiber, a portable compact disc read-only memory(CD-ROM), an optical storage device, a magnetic storage device, or anysuitable combination of the above.

The computer readable signal medium may include a data signal thatpropagates in a baseband or as a part of a carrier wave, and carryreadable program codes. Such propagated data signals may take a varietyof forms, including but not limited to electromagnetic signals, opticalsignals, or any suitable combination of the above. The readable signalmedium may also be any readable medium other than the readable storagemedium, and the readable medium may transmit, propagate, or transport aprogram for use by or in connection with an instruction executionsystem, apparatus, or device.

The program code contained in the readable medium may be transmittedusing any suitable medium, including but not limited to wireless, wired,optical cable, RF, etc., or any suitable combination of the above.

The program code for performing the operations of the present disclosuremay be written in any combination of one or more programming languages,including object-oriented programming languages such as Java. C++, etc.,as well as conventional procedural programming languages such as the “C”language or similar programming languages. The program code may executeentirely on the user's computing device, partly execute on the user'sdevice, execute as a stand-alone software package, execute partly on theuser's computing device and partly on a remote computing device, orexecute entirely on the remote computing device or a server. Insituations involving the remote computing device, the remote computingdevice may be connected to the user's computing device through any typeof network, including a local area network (LAN) or a wide area network(WAN), or may be connected to an external computing device (e.g.,connected via the Internet using an Internet service offering).

In addition, the above-mentioned drawings are merely schematicillustrations of processes included in the method according to theexemplary embodiments of the present disclosure, and are not forlimiting purposes. It will be readily understood that the processesillustrated in the above drawings do not indicate or limit achronological order of these processes. In addition, it is also easilyunderstood that these processes may be performed synchronously orasynchronously, for example, in a plurality of modules.

However, exemplary embodiments may be implemented in various forms andshould not be construed as limited to the embodiments set forth herein;rather, these embodiments are provided so that this disclosure will bethorough and complete, and will fully convey the concept of the exampleembodiments to those skilled in the art. The same reference numerals inthe drawings denote the same or similar parts, and thus repeateddescriptions thereof will be omitted.

Furthermore, the described features, structures, or characteristics maybe combined in any suitable manner in one or more embodiments. In thefollowing description, numerous specific details are provided to providea thorough understanding of the embodiments of the present disclosure.However, those skilled in the art will recognize that the technicalsolutions of the present disclosure may be practiced without one or moreof the specific details, or that other methods, components, materials,devices, steps, etc. may be employed. In other instances, well-knownstructures, methods, devices, implementations, materials, or operationsare not shown or described in detail to avoid obscuring aspects of thepresent disclosure.

The block diagram shown in the drawings is merely a functional entityand does not necessarily have to correspond to a physically separateentity. That is, these functional entities may be implemented in theform of software, or these functional entities or a part of thesefunctional entities may be implemented in one or more software hardenedmodules, or these functional entities may be implemented in at least oneof different network, processor devices and microcontroller devices.

It should be noted that although several modules or units of theapparatus for action execution are mentioned in the above detaileddescription, such division is not mandatory. In fact, according to theembodiments of the present disclosure, the features and functions of twoor more modules or units described above may be embodied in one moduleor unit. Conversely, the features and functions of one module or unitdescribed above may be further divided into multiple modules or units.

Those skilled in the art will readily recognize other embodiments of thepresent disclosure upon consideration of the specification and practiceof the contents disclosed herein. This application is intended to coverany variations, uses, or adaptations of the present disclosure whichfollow the general principles of the present disclosure and include anycommon knowledge or conventional techniques in this technical field notdisclosed by the present disclosure. The description and embodiments areto be considered exemplary only, with the true scope and spirit of thedisclosure being indicated by the accompanying claims.

It should be understood that the present disclosure is not limited tothe precise structure that has been described above and shown in thedrawings, and various modifications and changes may be made withoutdeparting from the scope thereof. The scope of the present disclosure islimited only by the appended claims.

What is claimed is:
 1. A method for processing information, wherein agraphical user interface is obtained by executing a software applicationon a processor of a terminal and rendering on a touch screen of theterminal, and the graphical user interface at least includes a gamescene, the method comprising: in case that at least one of a touchsliding event passing a control and a touch sliding event starting froma control is detected, calculating a distance between a current positionof a touch point of the touch sliding event and a position of thecontrol in real time; and in response to that the distance is greaterthan a first preset threshold, adjusting at least one of a direction anda distance of an emission operation for a corresponding skill of thecontrol performed on a virtual character according to the currentposition of the touch point, wherein the method further comprises:detecting a touch end event continuous with the touch sliding event; inresponse to that the touch end event is detected, determining whetherthe distance between the current position of the touch point of thetouch sliding event and the position of the control is greater than asecond preset threshold; and in response to that the distance betweenthe current position of the touch point of the touch sliding event andthe position of the control is less than or equal to the second presetthreshold, performing the emission operation for the corresponding skillof the control on the virtual character.
 2. The method for processinginformation according to claim 1, wherein the touch sliding eventcomprises at least one of an event in response to a touch sliding on thecontrol, an event in response to a tap touch sliding on the control, andan event in response to a re-press touch sliding on the control.
 3. Themethod for processing information according to claim 1, furthercomprising: in response to that the distance between the currentposition of the touch point of the touch sliding event and the positionof the control is greater than the second preset threshold, cancelingperforming the emission operation for the corresponding skill of thecontrol on the virtual character.
 4. The method for processinginformation according to claim 1, further comprising: detecting a touchend event continuous with the touch sliding event; and in response tothat the touch end event is detected, performing the emission operationfor the corresponding skill of the control on the virtual character. 5.The method for processing information according to claim 3, wherein thefirst preset threshold is positively correlated with a minimum emissiondistance of the emission operation, and the second preset threshold ispositively correlated with a maximum emission distance of the emissionoperation.
 6. The method for processing information according to claim1, further comprising: in response to that the touch sliding event isdetected, determine whether the distance between the current position ofthe touch point of the touch sliding event and the position of thecontrol is greater than a third preset threshold; wherein the thirdpreset threshold is less than or equal to the first preset threshold;and in response to that the distance between the current position of thetouch point of the touch sliding event and the position of the controlis greater than the third preset threshold, displaying an auxiliaryobject on the graphic user interface.
 7. The method for processinginformation according to claim 6, wherein the auxiliary object is anauxiliary line; and wherein the auxiliary line uses the control as astarting point and the current position of the touch point as an endpoint.
 8. The method for processing information according to claim 7,wherein adjusting the direction of the emission operation for thecorresponding skill of the control performed on the virtual characteraccording to the current position of the touch point, comprises: in casethat the current position of the touch point changes, adjusting thedirection of the emission operation for the corresponding skill of thecontrol according to a mapping relationship between an angle of theauxiliary line and the direction of the emission operation.
 9. Themethod for processing information according to claim 7, whereinadjusting the distance of the emission operation for the correspondingskill of the control performed on the virtual character according to thecurrent position of the touch point, comprises: in the case that thecurrent position of the touch point changes, adjusting the distance ofthe emission operation of the corresponding skill of the controlaccording to a mapping relationship between a length of the auxiliaryline and the distance of the emission operation.
 10. The method forprocessing information according to claim 7, wherein in response to thatthe distance between the current position of the touch point of thetouch sliding event and the position of the control is greater than thesecond preset threshold, displaying distinctively the auxiliary line toprompt to cancel the emission operation for the corresponding skill ofthe control performed on the virtual character.
 11. An electronicdevice, comprising: a processor; and a memory for storing executableinstructions of the processor; wherein the processor is configured toperform following steps via executing the executable instructions: incase that at least one of a touch sliding event passing a control and atouch sliding event starting from a control is detected, calculating adistance between a current position of a touch point of the touchsliding event and a position of the control in real time; and inresponse to that the distance is greater than a first preset threshold,adjusting at least one of a direction and a distance of an emissionoperation for a corresponding skill of the control performed on avirtual character according to the current position of the touch point,wherein the processor is configured to perform following steps viaexecuting the executable instructions: detecting a touch end eventcontinuous with the touch sliding event; in response to that the touchend event is detected, determining whether the distance between thecurrent position of the touch point of the touch sliding event and theposition of the control is greater than a second preset threshold; andin response to that the distance between the current position of thetouch point of the touch sliding event and the position of the controlis less than or equal to the second preset threshold, performing theemission operation for the corresponding skill of the control on thevirtual character.
 12. The electronic device according to claim 11,wherein the touch sliding event comprises at least one of an event inresponse to a touch sliding on the control, an event in response to atap touch sliding on the control, and an event in response to a re-presstouch sliding on the control.
 13. The electronic device according toclaim 11, wherein the processor is configured to perform following stepsvia executing the executable instructions: in response to that thedistance between the current position of the touch point of the touchsliding event and the position of the control is greater than the secondpreset threshold, canceling performing the emission operation for thecorresponding skill of the control on the virtual character.
 14. Theelectronic device according to claim 11, wherein the processor isconfigured to perform following steps via executing the executableinstructions: detecting a touch end event continuous with the touchsliding event; and in response to that the touch end event is detected,performing the emission operation for the corresponding skill of thecontrol on the virtual character.
 15. The electronic device according toclaim 11, wherein the first preset threshold is positively correlatedwith a minimum emission distance of the emission operation, and thesecond preset threshold is positively correlated with a maximum emissiondistance of the emission operation.
 16. The electronic device accordingto claim 11, wherein the processor is configured to perform followingsteps via executing the executable instructions: in response to that thetouch sliding event is detected, determine whether the distance betweenthe current position of the touch point of the touch sliding event andthe position of the control is greater than a third preset threshold;wherein the third preset threshold is less than or equal to the firstpreset threshold; and in response to that the distance between thecurrent position of the touch point of the touch sliding event and theposition of the control is greater than the third preset threshold,displaying an auxiliary object on the graphic user interface.
 17. Theelectronic device according to claim 16, wherein the auxiliary object isan auxiliary line; and wherein the auxiliary line uses the control as astarting point and the current position of the touch point as an endpoint.
 18. A computer-readable storage medium having a computer programstored thereon, wherein the computer program is executed by a processorto implement following steps: in case that at least one of a touchsliding event passing a control and a touch sliding event starting froma control is detected, calculating a distance between a current positionof a touch point of the touch sliding event and a position of thecontrol in real time; and in response to that the distance is greaterthan a first preset threshold, adjusting at least one of a direction anda distance of an emission operation for a corresponding skill of thecontrol performed on a virtual character according to the currentposition of the touch point, wherein the computer program is executed bya processor to further implement following steps: detecting a touch endevent continuous with the touch sliding event; in response to that thetouch end event is detected, determining whether the distance betweenthe current position of the touch point of the touch sliding event andthe position of the control is greater than a second preset threshold;and in response to that the distance between the current position of thetouch point of the touch sliding event and the position of the controlis less than or equal to the second preset threshold, performing theemission operation for the corresponding skill of the control on thevirtual character.